
/**
 * Function populates 'element' with 'hint', when 'element' value is ""
 * @param hint Text to populate 'element' with
 * @param element Element to manipulate
 */
function hintText(hint, element)
{
	if (element.value == "") {
		element.value = hint;
	}
}

/**
 * Function clears 'element' value, when 'element' value is 'hint'
 * @param hint Text to check whether clearing is neccessary
 * @param element Element to manipulate
 */
function clearHint(hint, element)
{
	if (element.value == hint) {
		element.value = "";
	}
}